<?php
class Admin extends CI_Model {
    function tryLogin($email,$password) {
        $sql = "SELECT * from fl_login
                WHERE
                    Email    = '$email' AND
                    Password = '$password' AND
                    Active   = 1";
        $query = $this->db->query($sql);
        if ($query->num_rows()>0) {
            return $query->row_array();
        } else {
            return false;
        }
    }
}
?>